Writing a vector in component form